/*
 * @Description:
 * @Author: huiLong.lan
 * @Date: 2024-09-30 09:45:17
 * @LastEditors: huiLong.lan
 * @LastEditTime: 2024-09-30 09:51:19
 */

import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore('user', () => {
  const user = ref({
    roles: [],
    perms: []
  })
  console.log(user)

  /**
   * 登录
   *
   * @param {LoginData}
   * @returns
   */

  // 获取信息(用户昵称、头像、角色集合、权限集合)

  // user logout

  // remove token

  return {}
})
